{% extends "space/rest/index.html" %} 
{% block script %}
		$("#id_parent").mcDropdown("#id_cuis_typesmenu"); 
{% endblock %}
{% block right_container %}


<ul id="id_cuis_typesmenu" class="mcdropdown_menu">
	{{rest_cuis_types|safe}}
</ul>
<div class="admin_position">商户管理 > 修改菜式分类</div>

<div class="admin_mer_zpc_ad">

	<form method="post" action="" name="restCuisTypeForm"
		id="restCuisTypeForm">
		<div class="admin_mer_newDish" >
     		<table class="zpc_ad_list"><tbody>
			{{form.id}}
			<tbody>
				<tr>
					<td class="bg_left">{{form.name.label}}:</td>
					<td class="td_bg">{{form.name}}</td>
					<td class="red">{% for error in form.name.errors %}{{error}}{%endfor %}</td>
				</tr>
				<tr>
					<td class="bg_left">{{form.parent.label}}:</td>
					<td class="td_bg"><input type="text" name="parent" id="id_parent" value="{{rest_cuis_type.parent.id}}" /></td>
					<td class="red">{% for error in form.parent.errors %}{{error}}{%endfor %}</td>
				</tr>
			</tbody>
		</table>
		<div class="center"><input type="submit" name="button" value="提交内容" /></div>
		
		</div>
		{% csrf_token %}
	</form>

</div>

{% endblock %}
